package com.chushouya.order.dto.api.quality;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 质检提交DTO
 */
@Data
@ApiModel("质检提交信息")
public class QualitySubmitApiDTO {

    @ApiModelProperty(value = "订单号", required = true)
    @NotBlank(message = "订单号不能为空")
    private String orderNo;

    @ApiModelProperty(value = "质检金额", required = true)
    @NotNull(message = "质检金额不能为空")
    private BigDecimal qualityPrice;

    @ApiModelProperty(value = "质检师ID", required = true)
    @NotNull(message = "质检师ID不能为空")
    private Long qualityUserId;

    @ApiModelProperty(value = "质检师姓名")
    private String qualityUserName;

    @ApiModelProperty(value = "质检结果说明")
    private String qualityRemark;

    @ApiModelProperty(value = "质检选项列表", required = true)
    @NotNull(message = "质检选项不能为空")
    private List<QualityItemSubmitDTO> qualityItems;

    @ApiModelProperty(value = "质检图片列表")
    private List<String> qualityImages;

    @ApiModelProperty(value = "是否通过质检")
    private Boolean isQualityPass;

    @ApiModelProperty(value = "质检状态")
    private Integer qualityStatus;
}
